/*
 *
 * Copyright (C) 2012 Walter Lütgenau
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package offset.nodes.client.veditor.model;

import offset.nodes.client.editor.model.messages.TemplateInformation;

public class Template {

    String name = null;
    String elementPath = null;
    VirtualElement root;
    String value = null;
    String html = null;
    String descriptionText = null;
    boolean occursMultiple = false;
    TemplateInformation typeInformation = null;
    VirtualBlock virtualBlock;

    public Template(String name, String elementPath, VirtualBlock virtualBlock) {
        this.virtualBlock = virtualBlock;
        this.name = name;
        this.elementPath = elementPath;
        this.root = new VirtualElement("", virtualBlock);
    }

    public TemplateInformation getTypeInformation() {
        return typeInformation;
    }

    public void setTypeInformation(TemplateInformation typeInformation) {
        this.typeInformation = typeInformation;
    }

    public VirtualElement getRoot() {
        return root;
    }

    public void setRoot(VirtualElement root) {
        this.root = root;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getElementPath() {
        return elementPath;
    }

    public String getHtml() {
        return html;
    }

    public void setHtml(String html) {
        this.html = html;
    }

    public String getDescriptionText() {
        return descriptionText;
    }

    public void setDescriptionText(String descriptionText) {
        this.descriptionText = descriptionText;
    }

    public boolean occursMultiple() {
        return occursMultiple;
    }

    public void setOccursMultiple(boolean occursMultiple) {
        this.occursMultiple = occursMultiple;
    }
}
